#!/bin/bash
# Copyrignt (c) xuzeshui.com. All Rights Reserved.
# Author: Zeshui Xu<i@xuzeshui.com>
# Created Time: 2015-10-09 16:09:00
# Last Modified: 2016-10-13 19:33:43
# File Name: test/third_login.sh
# Description: 

path="/v1/account/login/third_account"

params='
{
}
'

body='
{
    "avatar": "http://1.2.3.4/pic.jpg",
    "nick_name": "HelloWorld-Haha",
    "ext_from": "qkqq",
    "ext_id": "shuige123",
    "union_id": "uin_123w456",
    "mobile": "18603058017",
    "captcha": "733789"
}
'

url=`python geturl.py "${path}" "${params}"`
curl -v -k -d "${body}" "${url}"

